package com.zy.dp.strategy.example3;

public class Client
{
	public static void main(String[] args)
	{

		PaymentStrategy rmb = new RMBCash();
		PaymentStrategy dollar = new DollarCash();

		PaymentContext ctx1 = new PaymentContext("小李", 5660, rmb);
		ctx1.payNow();
		PaymentContext ctx2 = new PaymentContext("无道", 6800, dollar);

		ctx2.payNow();

		PaymentStrategy card = new Card();
		PaymentContext2 ctx3 = new PaymentContext2("", 10000, card, "288496104");

		ctx3.payNow();

	}
}
